<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<div class="am-cf">
	共 ${page.totalCount } 条记录
	<div class="am-fr">
		<ul class="am-pagination">
			<c:choose>
				<c:when test="${page.hasPre }">
					<li><a href="javascript:jumpPage(${page.prePage})">«</a></li>
				</c:when>
				<c:otherwise>
					<li class="am-disabled"><a href="#">«</a></li>
				</c:otherwise>
			</c:choose>
			<c:forEach items="${page.listNumbers }" var="stau">
				<c:choose>
					<c:when test="${stau==page.pageNo }">
						<li class="am-active"><a href="javascript:jumpPage(${stau })">${stau }</a></li>
					</c:when>
					<c:otherwise>
						<li><a href="javascript:jumpPage(${stau })">${stau }</a></li>
					</c:otherwise>
				</c:choose>
			</c:forEach>

			<c:choose>
				<c:when test="${page.hasNext }">
					<li><a href="javascript:jumpPage(${page.nextPage})">»</a></li>
				</c:when>
				<c:otherwise>
					<li class="am-disabled"><a href="#">»</a></li>
				</c:otherwise>
			</c:choose>
		</ul>
	</div>
</div>